package com.xxg.renrensearch.domain.result;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 商户商品结果类型
 *
 * @author xuxiaogang
 * @date 2021-11-17
 */
@Data
@NoArgsConstructor
public class GetShopResult {
    private List<ShopWithProducts> content;
    private long totalElements;
    private int totalPages;
    private int currentPageNo;

    public GetShopResult(List<ShopWithProducts> content, long totalElements, int totalPages, int currentPageNo) {
        this.content = content;
        this.totalElements = totalElements;
        this.totalPages = totalPages;
        this.currentPageNo = currentPageNo;
    }
}
